public function FieldValidationRuleSetListBuilder::render in Field Validation 8
Builds the entity listing as renderable array for table.html.twig.
@todo Add a link to add a new item to the #empty text.
Overrides EntityListBuilder::render
File
- src/
FieldValidationRuleSetListBuilder.php, line 79
Class
- FieldValidationRuleSetListBuilder
- Defines a class to build a listing of FieldValidationRuleSet entities.
Namespace
Drupal\field_validationCode
public function render() {
$build = parent::render();
$build['#empty'] = $this
->t('There are currently no rule set. <a href=":url">Add a new one</a>.', [
':url' => $this->urlGenerator
->generateFromRoute('field_validation.field_validation_rule_set_add'),
]);
return $build;
}