Shipping/Method.php
final function getConfigData($k) {
		static $map = [
			/**
			 * 2018-04-21
			 * @used-by \Magento\Shipping\Model\Config::getActiveCarriers():
			 * 	public function getActiveCarriers($store = null) {
			 * 		$carriers = [];
			 * 		$config = $this->_scopeConfig->getValue('carriers',
			 * 			\Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store
			 * 		);
			 * 		foreach (array_keys($config) as $carrierCode) {
			 * 			if ($this->_scopeConfig->isSetFlag(
			 * 				'carriers/' . $carrierCode . '/active',
			 * 				\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
			 * 				$store
			 * 			)) {
			 * 				$carrierModel = $this->_carrierFactory->create($carrierCode, $store);
			 * 				if ($carrierModel) {
			 * 					$carriers[$carrierCode] = $carrierModel;
			 * 				}
			 * 			}
			 * 		}
			 * 		return $carriers;
			 * 	}
			 * https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Config.php#L58-L77
			 * @uses \Df\Shipping\Method::isActive()
			 */
			'active' => 'isActive'
			/**
			 * 2018-04-21
			 * @used-by \Magento\Shipping\Model\Shipping::collectCarrierRates():
			 * 	if ($carrier->getConfigData('showmethod') == 0 && $result->getError()) {
			 * 		return $this;
			 * 	}
			 * https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Shipping.php#L311-L313
			 * @uses \Df\Shipping\Method::showMethod()
			 */
			,'showmethod' => 'showMethod'
		];
		return isset($map[$k]) ? call_user_func([$this, $map[$k]]) : $this->s($k);
	}
final function getConfigData($k) {
		static $map = [
			/**
			 * 2018-04-21
			 * @used-by \Magento\Shipping\Model\Config::getActiveCarriers():
			 * 	public function getActiveCarriers($store = null) {
			 * 		$carriers = [];
			 * 		$config = $this->_scopeConfig->getValue('carriers',
			 * 			\Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store
			 * 		);
			 * 		foreach (array_keys($config) as $carrierCode) {
			 * 			if ($this->_scopeConfig->isSetFlag(
			 * 				'carriers/' . $carrierCode . '/active',
			 * 				\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
			 * 				$store
			 * 			)) {
			 * 				$carrierModel = $this->_carrierFactory->create($carrierCode, $store);
			 * 				if ($carrierModel) {
			 * 					$carriers[$carrierCode] = $carrierModel;
			 * 				}
			 * 			}
			 * 		}
			 * 		return $carriers;
			 * 	}
			 * https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Config.php#L58-L77
			 * @uses \Df\Shipping\Method::isActive()
			 */
			'active' => 'isActive'
			/**
			 * 2018-04-21
			 * @used-by \Magento\Shipping\Model\Shipping::collectCarrierRates():
			 * 	if ($carrier->getConfigData('showmethod') == 0 && $result->getError()) {
			 * 		return $this;
			 * 	}
			 * https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Shipping.php#L311-L313
			 * @uses \Df\Shipping\Method::showMethod()
			 */
			,'showmethod' => 'showMethod'
		];
		return isset($map[$k]) ? call_user_func([$this, $map[$k]]) : $this->s($k);
	}
final function getConfigData ( $ k ) { static $ map = [ /**
			 * 2018-04-21
			 * @used-by \Magento\Shipping\Model\Config::getActiveCarriers():
			 * 	public function getActiveCarriers($store = null) {
			 * 		$carriers = [];
			 * 		$config = $this->_scopeConfig->getValue('carriers',
			 * 			\Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store
			 * 		);
			 * 		foreach (array_keys($config) as $carrierCode) {
			 * 			if ($this->_scopeConfig->isSetFlag(
			 * 				'carriers/' . $carrierCode . '/active',
			 * 				\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
			 * 				$store
			 * 			)) {
			 * 				$carrierModel = $this->_carrierFactory->create($carrierCode, $store);
			 * 				if ($carrierModel) {
			 * 					$carriers[$carrierCode] = $carrierModel;
			 * 				}
			 * 			}
			 * 		}
			 * 		return $carriers;
			 * 	}
			 * https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Config.php#L58-L77
			 * @uses \Df\Shipping\Method::isActive()
			 */ 'active' => 'isActive' /**
			 * 2018-04-21
			 * @used-by \Magento\Shipping\Model\Shipping::collectCarrierRates():
			 * 	if ($carrier->getConfigData('showmethod') == 0 && $result->getError()) {
			 * 		return $this;
			 * 	}
			 * https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Shipping.php#L311-L313
			 * @uses \Df\Shipping\Method::showMethod()
			 */ , 'showmethod' => 'showMethod' ] ; return isset ( $ map [ $ k ] ) ? call_user_func ( [ $ this , $ map [ $ k ] ] ) : $ this -> s ( $ k ) ; }
2018-04-17
@override
@see IAC::getConfigData()
https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Carrier/AbstractCarrierInterface.php#L15-L22
@see AC::getConfigData():
public function getConfigData($field) {
if (empty($this->_code)) {
return false;
}
$path = 'carriers/' . $this->_code . '/' . $field;
return $this->_scopeConfig->getValue(
$path,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$this->getStore()
);
}
https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Carrier/AbstractCarrier.php#L122-L140
1) @used-by \Magento\Shipping\Model\Shipping::collectCarrierRates():
if ($carrier->getConfigData('shipment_requesttype')) {
https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Shipping.php#L270-L306
2) @used-by \Magento\Shipping\Model\Shipping::collectCarrierRates():
if ($carrier->getConfigData('showmethod') == 0 && $result->getError()) {
return $this;
}
https://github.com/magento/magento2/blob/2.2.3/app/code/Magento/Shipping/Model/Shipping.php#L311-L313
@param string $k
@return mixed
2018 - 04 - 17