public function PluginUIBase::row

Displays a plugin row for configuring plugins in the user interface.

Parameters

string $display_plugin_id: The ID of the specific plugin definition being passed to us.

array $display_plugin_definition: The plugin definition associated with the passed $plugin_id.

Return value

array An array that represents a table row in the final user interface output.

1 call to PluginUIBase::row()
PluginUIBase::form in drupal/core/modules/system/lib/Drupal/system/Plugin/PluginUIBase.php
Implements \Drupal\system\Plugin\PluginUIInterface::form().
1 method overrides PluginUIBase::row()
BlockPluginUI::row in drupal/core/modules/block/lib/Drupal/block/Plugin/PluginUI/BlockPluginUI.php
Overrides \Drupal\system\Plugin\PluginUIBase::row().

File

drupal/core/modules/system/lib/Drupal/system/Plugin/PluginUIBase.php, line 81
Contains \Drupal\system\Plugin\PluginUIBase.

Class

PluginUIBase
Provides defaults for creating user interfaces for plugins of a given type.

Namespace

Drupal\system\Plugin

Code

public function row($display_plugin_id, array $display_plugin_definition) {
  $plugin_definition = $this
    ->getPluginDefinition();
  return array(
    $display_plugin_definition['title'],
    l($plugin_definition['link_title'], $plugin_definition['config_path'] . '/' . $display_plugin_id),
  );
}