function RulesPluginUI::operations

Implements RulesPluginUIInterface.

Overrides RulesPluginUIInterface::operations

1 call to RulesPluginUI::operations()
RulesContainerPluginUI::operations in ui/ui.core.inc
Implements RulesPluginUIInterface.
1 method overrides RulesPluginUI::operations()
RulesContainerPluginUI::operations in ui/ui.core.inc
Implements RulesPluginUIInterface.

File

ui/ui.core.inc, line 828

Class

RulesPluginUI
Faces UI extender for all kind of Rules plugins.

Code

public function operations() {
    $name = $this->element
        ->root()->name;
    $render = array(
        '#theme' => 'links__rules',
    );
    $render['#attributes']['class'][] = 'rules-operations';
    $render['#attributes']['class'][] = 'action-links';
    $render['#links']['edit'] = array(
        'title' => t('edit'),
        'href' => RulesPluginUI::path($name, 'edit', $this->element),
    );
    $render['#links']['delete'] = array(
        'title' => t('delete'),
        'href' => RulesPluginUI::path($name, 'delete', $this->element),
    );
    return $render;
}