You are here

PreprocessEntityEventInterface.php in Hook Event Dispatcher 8

File

src/Event/Preprocess/PreprocessEntityEventInterface.php
View source
<?php

namespace Drupal\hook_event_dispatcher\Event\Preprocess;


/**
 * Interface PreprocessEntityEventInterface.
 */
interface PreprocessEntityEventInterface extends PreprocessEventInterface {

  /**
   * Get the event name, with optional bundle and view mode.
   *
   * @param string $bundle
   *   Optional bundle.
   * @param string $viewMode
   *   Optional view mode.
   *
   * @return string
   *   Event name.
   */
  public static function name($bundle = '', $viewMode = '');

  /**
   * Get the Entity variables.
   *
   * @return \Drupal\hook_event_dispatcher\Event\Preprocess\Variables\AbstractEntityEventVariables
   *   Entity variables.
   */
  public function getVariables();

}

Interfaces

Namesort descending Description
PreprocessEntityEventInterface Interface PreprocessEntityEventInterface.