Second.php in farmOS 2.x
File
modules/core/entity/tests/modules/farm_entity_bundle_fields_test/src/Plugin/Plan/PlanType/Second.php
View source
<?php
namespace Drupal\farm_entity_bundle_fields_test\Plugin\Plan\PlanType;
use Drupal\entity\BundleFieldDefinition;
use Drupal\farm_entity\Plugin\Plan\PlanType\FarmPlanType;
class Second extends FarmPlanType {
public function buildFieldDefinitions() {
$fields = parent::buildFieldDefinitions();
$fields['second_plan_field'] = BundleFieldDefinition::create('boolean')
->setLabel($this
->t('Test field for second plan type'));
return $fields;
}
}
Classes
Name |
Description |
Second |
Provides the second test plan type. |