You are here

public function SlickFormBase::build_operations in Slick Carousel 7.3

Builds the operation links for a specific exportable item.

Overrides ctools_export_ui::build_operations

File

slick_ui/src/Form/SlickFormBase.php, line 204

Class

SlickFormBase
Provides base form for a slick instance configuration form.

Namespace

Drupal\slick_ui\Form

Code

public function build_operations($entity) {
  $operations = parent::build_operations($entity);
  if ($entity->name == 'default') {
    unset($operations['enable'], $operations['disable'], $operations['edit']);
  }
  return $operations;
}