page_tester-1.0.x-dev/src/TestsDataPluginBase.php
src/TestsDataPluginBase.php
<?php
declare(strict_types=1);
namespace Drupal\page_tester;
use Drupal\Component\Plugin\PluginBase;
/**
* Base class for tests_data plugins.
*/
abstract class TestsDataPluginBase extends PluginBase implements TestsDataInterface {
/**
* {@inheritdoc}
*/
public function label(): string {
// Cast the label to a string since it is a TranslatableMarkup object.
return (string) $this->pluginDefinition['label'];
}
}
