public function PaymentListBuilder::buildOperations in Payment 8.2
Builds a renderable list of operation links for the entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity on which the linked operations will be performed.
Return value
array A renderable array of operation links.
Overrides EntityListBuilder::buildOperations
See also
\Drupal\Core\Entity\EntityListBuilder::buildRow()
1 call to PaymentListBuilder::buildOperations()
- PaymentListBuilder::buildRow in src/
Entity/ Payment/ PaymentListBuilder.php - {@inheritdnoc}
File
- src/
Entity/ Payment/ PaymentListBuilder.php, line 243
Class
- PaymentListBuilder
- Lists payment entities.
Namespace
Drupal\payment\Entity\PaymentCode
public function buildOperations(EntityInterface $entity) {
$build = parent::buildOperations($entity);
// @todo Remove this when https://drupal.org/node/2253257 is fixed.
$build['#attached'] = array(
'library' => array(
'core/drupal.ajax',
),
);
return $build;
}