og-8.x-1.x-dev/src/OgGroupAlwaysTrue.php
src/OgGroupAlwaysTrue.php
<?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();
}
}
