src/Hook/ActionBuilder.php
public function run($hook, $args = null)
    {
        if (is_array($args)) {
            $this->doActionRefArray($hook, $args);
        } else {
            $this->doAction($hook, $args);
        }

        return $this;
    }
public function run($hook, $args = null)
    {
        if (is_array($args)) {
            $this->doActionRefArray($hook, $args);
        } else {
            $this->doAction($hook, $args);
        }

        return $this;
    }
public function run ( $ hook , $ args = null ) { if ( is_array ( $ args ) ) { $ this -> doActionRefArray ( $ hook , $ args ) ; } else { $ this -> doAction ( $ hook , $ args ) ; } return $ this ; }
Run all actions registered with the hook.

@param string $hook The action hook name.
@param mixed  $args

@return $this
Run all actions registered with the hook .