Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (41 sloc) 1.12 KB
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\fields;
use craft\base\ElementInterface;
use craft\base\Field;
use craft\base\MissingComponentInterface;
use craft\base\MissingComponentTrait;
/**
* MissingField represents a field with an invalid class.
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 3.0
*/
class MissingField extends Field implements MissingComponentInterface
{
// Traits
// =========================================================================
use MissingComponentTrait;
// Static
// =========================================================================
/**
* @inheritdoc
*/
public static function hasContentColumn(): bool
{
return false;
}
// Public Methods
// =========================================================================
/**
* @inheritdoc
*/
public function getInputHtml($value, ElementInterface $element = null): string
{
return $this->getPlaceholderHtml();
}
}
You can’t perform that action at this time.