class DataDeriver in Data 8
A derivative class which provides automatic wizards for all tables.
The derivatives store all base table plugin information.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface- class \Drupal\data\Plugin\Derivative\DataDeriver
 
Expanded class hierarchy of DataDeriver
File
- src/Plugin/ Derivative/ DataDeriver.php, line 12 
Namespace
Drupal\data\Plugin\DerivativeView 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
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| DataDeriver:: | public | function | Gets the definition of all derivatives of a base plugin. Overrides DeriverBase:: | |
| DeriverBase:: | protected | property | List of derivative definitions. | 1 | 
| DeriverBase:: | public | function | Gets the definition of a derivative plugin. Overrides DeriverInterface:: | 
