Documentation

prepareFieldDefinition

 \Bitrix\Landing\Node::prepareFieldDefinition(
   array $field
)

Method gets description for source field with indication of node type. Checks the availability of required keys and returns array with standardized structure.

Parameters

Parameters Description Available from version
$field Array with field description. Required keys (minimally):
  • id - field ID
  • name - name
  • type - field type
The rest of keys are defined by the node type.

Returned value

  • null
    • no ID keys, name or type;
    • class descendant \Bitrix\Landing\Node not found to process this type;
    • empty method result validateFieldDefinition.
  • standartized array with field description


© «Bitrix24», 2001-2024
Up