You are here

public static function RenderedFlags::describeFlag in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 modules/cms_content_sync_views/src/Plugin/views/field/RenderedFlags.php \Drupal\cms_content_sync_views\Plugin\views\field\RenderedFlags::describeFlag()
  2. 2.1.x modules/cms_content_sync_views/src/Plugin/views/field/RenderedFlags.php \Drupal\cms_content_sync_views\Plugin\views\field\RenderedFlags::describeFlag()
1 call to RenderedFlags::describeFlag()
Flags::getValueOptions in modules/cms_content_sync_views/src/Plugin/views/filter/Flags.php
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.

File

modules/cms_content_sync_views/src/Plugin/views/field/RenderedFlags.php, line 38

Class

RenderedFlags
Views Field handler to check if a entity is pulled.

Namespace

Drupal\cms_content_sync_views\Plugin\views\field

Code

public static function describeFlag($name, $error = NULL) {
  $description = self::FLAG_DESCRIPTION[$name];
  if (empty($error)) {
    $description = str_replace(' (%error)', '', $description);
  }
  else {
    $description = str_replace(' (%error)', $error, $description);
  }
  return $description;
}