FOF30\Factory\Scaffolding\Layout\Builder::getContainer PHP Method

getContainer() public method

Gets the container this builder belongs to
public getContainer ( ) : Container
return FOF30\Container\Container
    public function getContainer()
    {
        return $this->container;
    }

Usage Example

Beispiel #1
0
 /**
  * Returns the common language key prefix, something like "COM_EXAMPLE_MYVIEW_"
  *
  * @return string
  */
 protected function getLangKeyPrefix()
 {
     if (empty($this->langKeyPrefix)) {
         $prefix = $key = $this->builder->getContainer()->componentName . '_' . $this->viewName . '_';
         $this->langKeyPrefix = strtoupper($prefix);
     }
     return $this->langKeyPrefix;
 }