Neos\Flow\Mvc\Controller\Argument::getPropertyMappingConfiguration PHP Method

getPropertyMappingConfiguration() public method

Return the Property Mapping Configuration used for this argument; can be used by the initialize*action to modify the Property Mapping.
public getPropertyMappingConfiguration ( ) : MvcPropertyMappingConfiguration
return MvcPropertyMappingConfiguration
    public function getPropertyMappingConfiguration()
    {
        if ($this->propertyMappingConfiguration === null) {
            $this->propertyMappingConfiguration = new MvcPropertyMappingConfiguration();
        }
        return $this->propertyMappingConfiguration;
    }

Usage Example

Esempio n. 1
0
 /**
  * @test
  */
 public function defaultPropertyMappingConfigurationDoesNotAllowCreationOrModificationOfObjects()
 {
     $this->assertNull($this->simpleValueArgument->getPropertyMappingConfiguration()->getConfigurationValue(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED));
     $this->assertNull($this->simpleValueArgument->getPropertyMappingConfiguration()->getConfigurationValue(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED));
 }