final class BlockPreprocessEventFactory in Hook Event Dispatcher 8
Class BlockPreprocessEventFactory.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\BlockPreprocessEventFactory implements PreprocessEventFactoryInterface
 
Expanded class hierarchy of BlockPreprocessEventFactory
1 string reference to 'BlockPreprocessEventFactory'
1 service uses BlockPreprocessEventFactory
File
- src/
Event/ Preprocess/ Factory/ BlockPreprocessEventFactory.php, line 11  
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
final class BlockPreprocessEventFactory implements PreprocessEventFactoryInterface {
  /**
   * {@inheritdoc}
   */
  public function createEvent(array &$variables) {
    return new BlockPreprocessEvent(new BlockEventVariables($variables));
  }
  /**
   * {@inheritdoc}
   */
  public function getEventHook() {
    return BlockPreprocessEvent::getHook();
  }
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            BlockPreprocessEventFactory:: | 
                  public | function | 
            Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface:: | 
                  |
| 
            BlockPreprocessEventFactory:: | 
                  public | function | 
            Get the Event hook name. Overrides PreprocessEventFactoryInterface:: |