src/Page/Page.php
public function setPrefix(string $prefix): PageInterface
    {
        $this->prefix = $prefix;

        $this->repository()->getSettings()->collapse()->each(function ($setting) use ($prefix) {
            /** @var $setting FieldTypeInterface */
            $setting->setPrefix($prefix);
        });

        return $this;
    }
public function setPrefix(string $prefix): PageInterface
    {
        $this->prefix = $prefix;

        $this->repository()->getSettings()->collapse()->each(function ($setting) use ($prefix) {
            /** @var $setting FieldTypeInterface */
            $setting->setPrefix($prefix);
        });

        return $this;
    }
public function setPrefix ( string $ prefix ) : PageInterface { $ this -> prefix = $ prefix ; $ this -> repository ( ) -> getSettings ( ) -> collapse ( ) -> each ( function ( $ setting ) use ( $ prefix ) { /** @var $setting FieldTypeInterface */ $ setting -> setPrefix ( $ prefix ) ; } ) ; return $ this ; }
Set the page settings name prefix.

@param string $prefix

@return PageInterface
Set the page settings name prefix .