本文整理匯總了PHP中Drupal\Core\Field\FieldItemBase::defaultInstanceSettings方法的典型用法代碼示例。如果您正苦於以下問題:PHP FieldItemBase::defaultInstanceSettings方法的具體用法?PHP FieldItemBase::defaultInstanceSettings怎麽用?PHP FieldItemBase::defaultInstanceSettings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Drupal\Core\Field\FieldItemBase
的用法示例。
在下文中一共展示了FieldItemBase::defaultInstanceSettings方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: defaultInstanceSettings
/**
* {@inheritdoc}
*/
public static function defaultInstanceSettings()
{
return array('backend' => 'geofield_backend_default') + parent::defaultInstanceSettings();
}
示例2: defaultInstanceSettings
/**
* {@inheritdoc}
*/
public static function defaultInstanceSettings()
{
return array('test_instance_setting' => 'dummy test string', 'test_cached_data' => FALSE) + parent::defaultInstanceSettings();
}
示例3: defaultInstanceSettings
/**
* {@inheritdoc}
*/
public static function defaultInstanceSettings()
{
return array('min' => '', 'max' => '', 'prefix' => '', 'suffix' => '') + parent::defaultInstanceSettings();
}
示例4: defaultInstanceSettings
/**
* {@inheritdoc}
*/
public static function defaultInstanceSettings()
{
return array('title' => DRUPAL_OPTIONAL, 'link_type' => LinkItemInterface::LINK_GENERIC) + parent::defaultInstanceSettings();
}
示例5: defaultInstanceSettings
/**
* {@inheritdoc}
*/
public static function defaultInstanceSettings()
{
return array('default_mode' => CommentManagerInterface::COMMENT_MODE_THREADED, 'per_page' => 50, 'form_location' => COMMENT_FORM_BELOW, 'anonymous' => COMMENT_ANONYMOUS_MAYNOT_CONTACT, 'preview' => DRUPAL_OPTIONAL) + parent::defaultInstanceSettings();
}
示例6: defaultInstanceSettings
/**
* {@inheritdoc}
*/
public static function defaultInstanceSettings()
{
$settings = parent::defaultInstanceSettings();
$settings['text_processing'] = 0;
return $settings;
}