OgGroupAlwaysTrue.php in Organic groups 8
Namespace
Drupal\ogFile
src/OgGroupAlwaysTrue.phpView source
<?php
declare (strict_types=1);
namespace Drupal\og;
use Drupal\Core\TypedData\Plugin\DataType\BooleanData;
/**
* Overridden boolean data type to hardcode TRUE.
*/
class OgGroupAlwaysTrue extends BooleanData {
/**
* {@inheritdoc}
*/
public function getValue() {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function getCastedValue() {
return $this
->getValue();
}
}
Classes
Name![]() |
Description |
---|---|
OgGroupAlwaysTrue | Overridden boolean data type to hardcode TRUE. |