You are here

public function HomeboxSettingsForm::buildOperations in Homebox 8

Builds a renderable list of operation links for the entity.

Parameters

int $block_id: The block on which the linked operations will be performed.

bool $status: Status of block.

Return value

array A renderable array of operation links.

See also

\Drupal\Core\Entity\EntityListBuilder::buildRow()

1 call to HomeboxSettingsForm::buildOperations()
HomeboxSettingsForm::buildBlocksForm in src/Form/HomeboxSettingsForm.php
Build block edit form.

File

src/Form/HomeboxSettingsForm.php, line 439

Class

HomeboxSettingsForm
Class HomeboxForm.

Namespace

Drupal\homebox\Form

Code

public function buildOperations($block_id, $status) {
  $build = [
    '#type' => 'operations',
    '#links' => $this
      ->getOperations($block_id, $status),
  ];
  return $build;
}