concrete/src/Block/Block.php
public function getController()
    {
        if (
            Config::get('concrete.cache.blocks')
            && isset($this->instance)
            && $this->instance->cacheBlockRecord()
            && is_object($this->instance->getBlockControllerData())
            ) {
            $this->instance->__construct();
        } else {
            $bt = $this->getBlockTypeObject();
            $class = $bt->getBlockTypeClass();
            $app = Facade::getFacadeApplication();
            $this->instance = $app->build($class, [$this]);
        }
        $this->instance->setBlockObject($this);
        $this->instance->setAreaObject($this->getBlockAreaObject());
        
        return $this->instance;
    }
public function getController()
    {
        if (
            Config::get('concrete.cache.blocks')
            && isset($this->instance)
            && $this->instance->cacheBlockRecord()
            && is_object($this->instance->getBlockControllerData())
            ) {
            $this->instance->__construct();
        } else {
            $bt = $this->getBlockTypeObject();
            $class = $bt->getBlockTypeClass();
            $app = Facade::getFacadeApplication();
            $this->instance = $app->build($class, [$this]);
        }
        $this->instance->setBlockObject($this);
        $this->instance->setAreaObject($this->getBlockAreaObject());
        
        return $this->instance;
    }
public function getController ( ) { if ( Config :: get ( 'concrete.cache.blocks' ) && isset ( $ this -> instance ) && $ this -> instance -> cacheBlockRecord ( ) && is_object ( $ this -> instance -> getBlockControllerData ( ) ) ) { $ this -> instance -> __construct ( ) ; } else { $ bt = $ this -> getBlockTypeObject ( ) ; $ class = $ bt -> getBlockTypeClass ( ) ; $ app = Facade :: getFacadeApplication ( ) ; $ this -> instance = $ app -> build ( $ class , [ $ this ] ) ; } $ this -> instance -> setBlockObject ( $ this ) ; $ this -> instance -> setAreaObject ( $ this -> getBlockAreaObject ( ) ) ; return $ this -> instance ; }
Get the block type controller.

@return \Concrete\Core\Block\BlockController
Get the block type controller .