public function slugPrefix()
    {
        if (!$this->slugPrefix) {
            $metadata = $this->metadata();

            if (isset($metadata['routable']['prefix'])) {
                $this->slugPrefix = $this->translator()->translation($metadata['routable']['prefix']);
            }
        }

        return $this->slugPrefix;
    }
public function slugPrefix()
    {
        if (!$this->slugPrefix) {
            $metadata = $this->metadata();

            if (isset($metadata['routable']['prefix'])) {
                $this->slugPrefix = $this->translator()->translation($metadata['routable']['prefix']);
            }
        }

        return $this->slugPrefix;
    }
public function slugPrefix ( ) { if ( ! $ this -> slugPrefix ) { $ metadata = $ this -> metadata ( ) ; if ( isset ( $ metadata [ 'routable' ] [ 'prefix' ] ) ) { $ this -> slugPrefix = $ this -> translator ( ) -> translation ( $ metadata [ 'routable' ] [ 'prefix' ] ) ; } } return $ this -> slugPrefix ; }
Retrieve route prefix for the object's URL slug pattern.

@return \Charcoal\Translator\Translation|null
Retrieve route prefix for the object s URL slug pattern .