N98\Magento\Application\Console\EventSubscriber\CheckRootUser::getSubscribedEvents PHP Method

getSubscribedEvents() public static method

Returns an array of event names this subscriber wants to listen to.
public static getSubscribedEvents ( ) : array
return array The event names to listen to
    public static function getSubscribedEvents()
    {
        return array(Events::RUN_BEFORE => 'checkRunningAsRootUser');
    }