You are here

public function ProfileViewsRelationship::defineOptions in Profile 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides RelationshipPluginBase::defineOptions

File

src/Plugin/views/relationship/ProfileViewsRelationship.php, line 42

Class

ProfileViewsRelationship
Provides a views relationship to select profile content by a profile_type.

Namespace

Drupal\profile\Plugin\views\relationship

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['profile_type'] = [
    'default' => NULL,
  ];
  $options['required'] = [
    'default' => 1,
  ];
  return $options;
}