LazyLoadPlugin::register PHP Method

register() public method

public register ( $category, $path )
    function register($category, $path)
    {
        if (!parent::register($category, $path)) {
            return false;
        }
        $this->addLocaleData();
        return true;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @see Plugin::register()
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     if ($success && $this->getEnabled()) {
         $contextMap = $this->getContextMap();
         $blockContext = $this->getBlockContext();
         if (isset($contextMap[$blockContext])) {
             $hookName = $contextMap[$blockContext];
             HookRegistry::register($hookName, array($this, 'callback'));
         }
     }
     return $success;
 }
All Usage Examples Of LazyLoadPlugin::register