You are here

Broken.php in Empty fields 8

File

src/Plugin/EmptyFields/Broken.php
View source
<?php

namespace Drupal\empty_fields\Plugin\EmptyFields;

use Drupal\empty_fields\EmptyFieldPluginBase;

/**
 * Defines a fallback plugin for missing empty field plugins.
 *
 * @EmptyField(
 *   id = "broken",
 *   label = @Translation("Broken/Missing"),
 * )
 */
class Broken extends EmptyFieldPluginBase {

  /**
   * {@inheritdoc}
   */
  public function react(array $context) {
    return [
      '#markup' => $this
        ->settingsSummary(),
    ];
  }

  /**
   * {@inheritdoc}
   */
  public function settingsSummary() {
    return $this
      ->t('This plugin broken or missing.');
  }

}

Classes

Namesort descending Description
Broken Defines a fallback plugin for missing empty field plugins.