X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FField%2FFieldItemInterface.php;h=8e3e52b9f488312a89296abe8e0db3d4a022bcea;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=69906c1414d1063ee03e5baa6a5a7f7a544cf8af;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Field/FieldItemInterface.php b/web/core/lib/Drupal/Core/Field/FieldItemInterface.php index 69906c141..8e3e52b9f 100644 --- a/web/core/lib/Drupal/Core/Field/FieldItemInterface.php +++ b/web/core/lib/Drupal/Core/Field/FieldItemInterface.php @@ -38,8 +38,8 @@ interface FieldItemInterface extends ComplexDataInterface { * Returns the name of the main property, if any. * * Some field items consist mainly of one main property, e.g. the value of a - * text field or the @code target_id @endcode of an entity reference. If the - * field item has no main property, the method returns NULL. + * text field or the target_id of an entity reference. If the field item has + * no main property, the method returns NULL. * * @return string|null * The name of the value property, or NULL if there is none. @@ -114,11 +114,11 @@ interface FieldItemInterface extends ComplexDataInterface { /** * Magic method: Gets a property value. * - * @param $property_name + * @param string $property_name * The name of the property to get; e.g., 'title' or 'name'. * - * @return \Drupal\Core\TypedData\TypedDataInterface - * The property object. + * @return mixed + * The property value. * * @throws \InvalidArgumentException * If a not existing property is accessed. @@ -128,9 +128,9 @@ interface FieldItemInterface extends ComplexDataInterface { /** * Magic method: Sets a property value. * - * @param $property_name + * @param string $property_name * The name of the property to set; e.g., 'title' or 'name'. - * @param $value + * @param mixed $value * The value to set, or NULL to unset the property. Optionally, a typed * data object implementing Drupal\Core\TypedData\TypedDataInterface may be * passed instead of a plain value. @@ -143,7 +143,7 @@ interface FieldItemInterface extends ComplexDataInterface { /** * Magic method: Determines whether a property is set. * - * @param $property_name + * @param string $property_name * The name of the property to get; e.g., 'title' or 'name'. * * @return bool @@ -154,7 +154,7 @@ interface FieldItemInterface extends ComplexDataInterface { /** * Magic method: Unsets a property. * - * @param $property_name + * @param string $property_name * The name of the property to get; e.g., 'title' or 'name'. */ public function __unset($property_name); @@ -364,7 +364,7 @@ interface FieldItemInterface extends ComplexDataInterface { * @param bool $has_data * TRUE if the field already has data, FALSE if not. * - * @return + * @return array * The form definition for the field settings. */ public function storageSettingsForm(array &$form, FormStateInterface $form_state, $has_data);