You are here

class DataDeriver in Data 8

A derivative class which provides automatic wizards for all tables.

The derivatives store all base table plugin information.

Hierarchy

Expanded class hierarchy of DataDeriver

File

src/Plugin/Derivative/DataDeriver.php, line 12

Namespace

Drupal\data\Plugin\Derivative
View source
class DataDeriver extends DeriverBase {

  /**
   * {@inheritdoc}
   */
  public function getDerivativeDefinitions($base_plugin_definition) {
    $this->derivatives = array();
    foreach (data_get_all_tables() as $table) {
      $this->derivatives[$table
        ->id()] = array(
        'id' => 'data_table',
        'base_table' => $table
          ->id(),
        'title' => $table
          ->label(),
        'class' => 'Drupal\\data\\Plugin\\views\\wizard\\DataTable',
      );
    }
    return $this->derivatives;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DataDeriver::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides DeriverBase::getDerivativeDefinitions
DeriverBase::$derivatives protected property List of derivative definitions. 1
DeriverBase::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition