framework/RedKiteCms/Action/Block/RemoveBlockAction.php
public function execute(array $options, $username)
    {
        $data = $options["data"];
        $removeOptions = array(
            'page' => $data['page'],
            'language' => $data['language'],
            'country' => $data['country'],
            'slot' => $data['slot'],
            'blockname' => $data['name'],
        );

        $blockManager = $this->app["red_kite_cms.blocks_manager_factory"]->create('remove');

        return $blockManager->remove($this->app["red_kite_cms.configuration_handler"]->siteDir(), $removeOptions, $username);
    }
public function execute(array $options, $username)
    {
        $data = $options["data"];
        $removeOptions = array(
            'page' => $data['page'],
            'language' => $data['language'],
            'country' => $data['country'],
            'slot' => $data['slot'],
            'blockname' => $data['name'],
        );

        $blockManager = $this->app["red_kite_cms.blocks_manager_factory"]->create('remove');

        return $blockManager->remove($this->app["red_kite_cms.configuration_handler"]->siteDir(), $removeOptions, $username);
    }
public function execute ( array $ options , $ username ) { $ data = $ options [ "data" ] ; $ removeOptions = array ( 'page' => $ data [ 'page' ] , 'language' => $ data [ 'language' ] , 'country' => $ data [ 'country' ] , 'slot' => $ data [ 'slot' ] , 'blockname' => $ data [ 'name' ] , ) ; $ blockManager = $ this -> app [ "red_kite_cms.blocks_manager_factory" ] -> create ( 'remove' ) ; return $ blockManager -> remove ( $ this -> app [ "red_kite_cms.configuration_handler" ] -> siteDir ( ) , $ removeOptions , $ username ) ; }
{@inheritdoc}
{