src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/EditAllHandler.php
private function buildEditProperty(PropertyInterface $originalProperty, ModelIdInterface $modelId)
    {
        $editPropertyClass = \get_class($originalProperty);

        $editPropertyName = \str_replace('::', '____', $modelId->getSerialized()) . '_' . $originalProperty->getName();

        $editProperty = new $editPropertyClass($editPropertyName);
        $editProperty->setLabel($originalProperty->getLabel());
        $editProperty->setDescription($originalProperty->getDescription());
        $editProperty->setDefaultValue($editProperty->getDefaultValue());
        $editProperty->setExcluded($originalProperty->isExcluded());
        $editProperty->setSearchable($originalProperty->isSearchable());
        $editProperty->setFilterable($originalProperty->isFilterable());
        $editProperty->setWidgetType($originalProperty->getWidgetType());
        $editProperty->setOptions($originalProperty->getOptions());
        $editProperty->setExplanation($originalProperty->getExplanation());
        $editProperty->setExtra($originalProperty->getExtra());

        return $editProperty;
    }
private function buildEditProperty(PropertyInterface $originalProperty, ModelIdInterface $modelId)
    {
        $editPropertyClass = \get_class($originalProperty);

        $editPropertyName = \str_replace('::', '____', $modelId->getSerialized()) . '_' . $originalProperty->getName();

        $editProperty = new $editPropertyClass($editPropertyName);
        $editProperty->setLabel($originalProperty->getLabel());
        $editProperty->setDescription($originalProperty->getDescription());
        $editProperty->setDefaultValue($editProperty->getDefaultValue());
        $editProperty->setExcluded($originalProperty->isExcluded());
        $editProperty->setSearchable($originalProperty->isSearchable());
        $editProperty->setFilterable($originalProperty->isFilterable());
        $editProperty->setWidgetType($originalProperty->getWidgetType());
        $editProperty->setOptions($originalProperty->getOptions());
        $editProperty->setExplanation($originalProperty->getExplanation());
        $editProperty->setExtra($originalProperty->getExtra());

        return $editProperty;
    }
private function buildEditProperty ( PropertyInterface $ originalProperty , ModelIdInterface $ modelId ) { $ editPropertyClass = \ get_class ( $ originalProperty ) ; $ editPropertyName = \ str_replace ( '::' , '____' , $ modelId -> getSerialized ( ) ) . '_' . $ originalProperty -> getName ( ) ; $ editProperty = new $ editPropertyClass ( $ editPropertyName ) ; $ editProperty -> setLabel ( $ originalProperty -> getLabel ( ) ) ; $ editProperty -> setDescription ( $ originalProperty -> getDescription ( ) ) ; $ editProperty -> setDefaultValue ( $ editProperty -> getDefaultValue ( ) ) ; $ editProperty -> setExcluded ( $ originalProperty -> isExcluded ( ) ) ; $ editProperty -> setSearchable ( $ originalProperty -> isSearchable ( ) ) ; $ editProperty -> setFilterable ( $ originalProperty -> isFilterable ( ) ) ; $ editProperty -> setWidgetType ( $ originalProperty -> getWidgetType ( ) ) ; $ editProperty -> setOptions ( $ originalProperty -> getOptions ( ) ) ; $ editProperty -> setExplanation ( $ originalProperty -> getExplanation ( ) ) ; $ editProperty -> setExtra ( $ originalProperty -> getExtra ( ) ) ; return $ editProperty ; }
Build edit property from the original property.

@param PropertyInterface $originalProperty The original property.
@param ModelIdInterface  $modelId          The model id.

@return PropertyInterface
Build edit property from the original property .